/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sdc;

import javax.swing.DefaultListSelectionModel;

/**
 *
 * @author d
 */
public class PostListSelectionModel extends DefaultListSelectionModel {
    public void setSelectionInterval(int index0, int index1) {
        if (this.isSelectedIndex(index0)) {
            super.removeSelectionInterval(index0, index1);
        }
        else {
            super.setSelectionInterval(index0, index1);
        }
    }
}
